package com.itrustsolution.rms.entities;
// Generated 25 Mei 11 22:19:57 by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TckTicketLog generated by hbm2java
 */
@Entity
@Table(name="tck_ticket_log"
    ,catalog="rms"
)
public class TckTicketLog  implements java.io.Serializable {


     private Integer ticketLogId;
     private RmsUser rmsUser;
     private TckTicket tckTicket;
     private int ticketStatusId;
     private Date ticketLogDatestamp;
     private String ticketLogIp;

    public TckTicketLog() {
    }

    public TckTicketLog(RmsUser rmsUser, TckTicket tckTicket, int ticketStatusId, Date ticketLogDatestamp, String ticketLogIp) {
       this.rmsUser = rmsUser;
       this.tckTicket = tckTicket;
       this.ticketStatusId = ticketStatusId;
       this.ticketLogDatestamp = ticketLogDatestamp;
       this.ticketLogIp = ticketLogIp;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="TICKET_LOG_ID", unique=true, nullable=false)
    public Integer getTicketLogId() {
        return this.ticketLogId;
    }
    
    public void setTicketLogId(Integer ticketLogId) {
        this.ticketLogId = ticketLogId;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="USER_ID", nullable=false)
    public RmsUser getRmsUser() {
        return this.rmsUser;
    }
    
    public void setRmsUser(RmsUser rmsUser) {
        this.rmsUser = rmsUser;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="TICKET_ID", nullable=false)
    public TckTicket getTckTicket() {
        return this.tckTicket;
    }
    
    public void setTckTicket(TckTicket tckTicket) {
        this.tckTicket = tckTicket;
    }
    
    @Column(name="TICKET_STATUS_ID", nullable=false)
    public int getTicketStatusId() {
        return this.ticketStatusId;
    }
    
    public void setTicketStatusId(int ticketStatusId) {
        this.ticketStatusId = ticketStatusId;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="TICKET_LOG_DATESTAMP", nullable=false, length=19)
    public Date getTicketLogDatestamp() {
        return this.ticketLogDatestamp;
    }
    
    public void setTicketLogDatestamp(Date ticketLogDatestamp) {
        this.ticketLogDatestamp = ticketLogDatestamp;
    }
    
    @Column(name="TICKET_LOG_IP", nullable=false, length=50)
    public String getTicketLogIp() {
        return this.ticketLogIp;
    }
    
    public void setTicketLogIp(String ticketLogIp) {
        this.ticketLogIp = ticketLogIp;
    }




}


